/**
 * ProjectName:  mall-service
 * FileName:  Message.java
 * PackageName:  com.cyou.mall.entity
 * Copyright (c) 2013, CYOU All Rights Reserved.
*/
package com.blx.dao;

import org.springframework.stereotype.Component;

import com.blx.entity.Message;
import com.blx.utils.pagination.Pagination;

/**
 * ClassName:  MessageDao. <br/>
 * Description:  MessageDao <br/>
 * @author wangwl
 * 2013-3-4 下午8:50:37 <br/>
 * @version 1.0
 */
@Component
public class MessageDao extends BaseDao<Message> {

	/**
	 * 保存Message实体 <br/>
	 * @param message
	 * @author wangwl
	 * 2013-3-4 下午9:08:04
	 */
	public void saveMessage(Message message) {
		this.save("saveMessage", message);
	}
	/**
	 * 更新Message实体<br/>
	 * @param message
	 * @author wangwl
	 * 2013-3-4 下午8:59:52
	 */
	public void updateMessage(Message message) {
		this.update("updateMessage", message);
	}
	/**
	 * 删除Message实体 <br/>
	 * @param messageId
	 * @author wangwl
	 * 2013-3-4 下午9:00:14
	 */
	public void deleteMessageById(Integer messageId) {
		this.delete("deleteMessageById", messageId);
	}
	/**
	 * 根据id获取Message实体 <br/>
	 * @param messageId
	 * @return
	 * @author wangwl
	 * 2013-3-4 下午9:00:32
	 */
	public Message getMessageById(Integer messageId) {
		return this.get("getById", messageId);
	}
	/**
	 * 分页查询Message <br/>
	 * @param pageNumber
	 * @param pageSize
	 * @return
	 * @author wangwl
	 * 2013-3-4 下午9:01:23
	 */
	public Pagination<Message> findPageMessageAll(int pageNumber, int pageSize) {
		return this.findPage("findPageAll", pageNumber, pageSize);
	}
}



